package com.woniuxy.mapper;

import com.woniuxy.entity.Indent;
import com.woniuxy.entity.IndentExample;
import com.woniuxy.vo.BarViewVo;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IndentMapper {
    int countByExample(IndentExample example);

    int deleteByExample(IndentExample example);

    int deleteByPrimaryKey(Integer indentId);

    int insert(Indent record);

    int insertSelective(Indent record);

    List<Indent> selectByExample(IndentExample example);

    Indent selectByPrimaryKey(Integer indentId);

    int updateByExampleSelective(@Param("record") Indent record, @Param("example") IndentExample example);

    int updateByExample(@Param("record") Indent record, @Param("example") IndentExample example);

    int updateByPrimaryKeySelective(Indent record);

    int updateByPrimaryKey(Indent record);

    @MapKey("month")
    List<BarViewVo> mySelect();

    int findAllIndent();

    int updateById(Integer indentId);

    List<Indent> findByStatus();

    Indent findByFaultId(@Param("indentId") Integer indentId);

    void updateStatusAsSuccess(Integer indentId);

    List<Indent> selLastIndent(Integer userId);
}